import http from "./base";
import {LoginProps} from "./type";

const user = {
    login: "/wx/app/login",
    userInfo: "/wx/app/userInfo",
    invite: "/wx/app/protUserInfo/list",
};

//登录
export const ApiLogin = (data: LoginProps) => http({url: user.login, data});

//获取信息
export const ApiGetUserInfo = (token) => http({url: user.userInfo, token});

// 获取当前用户邀请的用户
export const ApiUserInvite = (data = {}) => http({url: user.invite, data});
